module.exports = {
    devServer: {
        proxy: {
         
          '/api2': {
            target: 'http://192.168.0.31:8080',
            ws: true,
            /* 允许跨域 */
            logLevel:'debug', 
            changeOrigin: true,
            pathRewrite: {
              '^/api2': ''
            }
          },
          '/api': {
           target: 'http://192.168.0.31',
           ws: true,
           /* 允许跨域 */
           logLevel:'debug', 
           changeOrigin: true,
           pathRewrite: {
             '^/api': ''
           }
         },
        }
      }
}